#ifndef IMAGEPROCESSOR_H
#define IMAGEPROCESSOR_H

#ifdef __cplusplus
	extern "C" {
#endif

void Threshold(unsigned char *pTo, unsigned char *pSourse, unsigned int biHight,\
						unsigned int biWidth, unsigned char nThres);
int DetectThreshold(unsigned char *pSourse, unsigned int biHight, unsigned int biWidth, \
						int nMaxIter, int *nDiffRet);
void MedianFilter(unsigned char *pTo, unsigned char *pSourse, unsigned int biHight,unsigned int biWidth, \
					 	unsigned int nFilterH, unsigned int nFilterW, unsigned int nFilterMY, unsigned int nFilterMX);
void Erode(unsigned char *pTo,unsigned char *pSourse,unsigned int biHight,unsigned int biWidth, \
						float *se,unsigned int nTempH,unsigned int nTempW);

#ifdef __cplusplus
}
#endif

#endif
